$('#btn_sql_migration').click(function () {
	var index = layer.load(1, {
		shade: [0.1,'#fff'] //0.1透明度的白色背景
	});
	
	$('#btn_sql_migration').attr("disabled",true); 
	
    $.wajax({
        url: CONTEXT_PATH+'/manage/system/sql_migration',
        type: "GET",
        success: function (result) {
        	layer.close(index);
        	$('#btn_sql_migration').attr("disabled",false); 
        	
            if(result.code == RESULT_FAIL){
                layer.alert(result.msg);
                return;
            }
            layer.alert(result.msg);
        }
    });
});